// ****************************************************************
// Copyright 2012, Stephan Burguchev
// e-mail: me@sburg.net
// ****************************************************************
// *
using System;
using Updater.Wpf.Properties;

namespace Updater.Wpf
{
    public class ErrorDetailsDisplayEventArgs : EventArgs
    {
        public ErrorDetailsDisplayEventArgs([NotNull] Exception exception, [NotNull] string fullMessage, UpdateStatus status)
        {
            if (exception == null)
            {
                throw new ArgumentNullException("exception");
            }
            if (fullMessage == null)
            {
                throw new ArgumentNullException("fullMessage");
            }

            this.Exception = exception;
            this.FullMessage = fullMessage;
            this.Status = status;
        }

        public Exception Exception { get; private set; }
        public string FullMessage { get; private set; }
        public UpdateStatus Status { get; private set; }
    }
}
